<%@include file="taglib_includes.jsp" %>
<c:import url="header.jsp" />
<script type="text/javascript" src="js/contacts.js"></script>
<fmt:setLocale value="nl_NL" />

<table>
	<tr>
		<td align="center"><h3>Nieuw product formulier</h3></td>
	</tr>
	<tr valign="top" align="center">
    <td align="center">
 		<form:form action="saveProduct.htm" method="post" commandName="newProduct">
	    	
				<table  style="border-collapse: collapse;" border="1" bordercolor="fff" width="500">	
					<tr>
						<td width="100" align="right">Naam</td>
						<td width="150">
						<form:input path="naam"/></td>
						<td align="left">
						<form:errors path="naam" cssStyle="color:red"></form:errors> 
						</td>
					</tr>
					<tr>
						<td width="100" align="right">Omschrijving</td>
						<td><form:input path="omschrijving"/></td>
						<td align="left">
						<form:errors path="omschrijving" cssStyle="color:red"></form:errors>  </td>
					</tr>
					<tr>
						<td width="100" align="right">Prijs</td>
						<td><form:input path="prijs"/></td>
						<td align="left">
						<form:errors path="prijs" cssStyle="color:red"></form:errors>  </td>
					</tr>
					<tr>
						<td width="100" align="right">Categorie</td>
						<td><form:select path="categorie.categorieId" title="categorie" >
						     <form:options items="${categorieen}" itemValue="categorieId"  />
						     
						</form:select></td>
					</tr>

					<tr>
						<td width="100" align="right">Merk</td>
						<td><form:select path="merk.merkId" title="merk"  >
						     <form:options items="${merken}" itemValue="merkId" />
						</form:select></td>
					</tr>
					
					<tr>
						<td colspan="3" align="center">
						<input type="submit" name="" value="Save">
						&nbsp;&nbsp;
						<input type="reset" name="" value="Reset">
						&nbsp;&nbsp;
						<input type="button"  value="Back" onclick="javascript:go('alleProducten.htm');">
						</td>
					</tr>					
				</table>			
		</form:form>
    </td>    
  </tr>
</table>
<c:import url="footer.jsp" />
